Skip to content

Conversation

@nicky1038
Copy link
Contributor

@nicky1038 nicky1038 commented Feb 22, 2025

Fixes the way how query params are parsed when they consist of one letter or the first letter is followed by underscore.

Original #686 by @ahoseinian was needed to be rebased.

So I did it myself because of no activity there.

@changeset-bot
Copy link

changeset-bot bot commented Feb 22, 2025

🦋 Changeset detected

Latest commit: 6d9e920

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
swagger-typescript-api Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@nicky1038 nicky1038 force-pushed the bugfix/fix-route-path-params-parsing branch 2 times, most recently from 11ba2f3 to 1fd32de Compare February 22, 2025 20:18
@nicky1038
Copy link
Contributor Author

Things done in this PR that were not in the original one:

  • Allowed leading chars [ \ ] ^ ` _ in query param regex for backwards compatibility. In the old regex the leading symbol was [A-z], and these chars also match this regex.
  • Updated snapshots
  • Added changeset

@smorimoto smorimoto added the bug Something isn't working label Mar 22, 2025
ahoseinian and others added 6 commits March 22, 2025 21:26
For example if the param was i_key the current regex would not find it as a variable. it was only working for the params with more than one letter before either `.` `-` or `_`. the fix should allow to find params with only one letter at begninng.
@smorimoto smorimoto force-pushed the bugfix/fix-route-path-params-parsing branch from 1fd32de to 0d4a3ce Compare March 22, 2025 12:27
Signed-off-by: Sora Morimoto <[email protected]>
@smorimoto
Copy link
Collaborator

@nicky1038 Let me know what you think about the last commit. The last commit feels fine to me.

@smorimoto smorimoto merged commit caccd4b into acacode:main Mar 22, 2025
1 check passed
@github-actions github-actions bot mentioned this pull request Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants